var gBundle = Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService);
var strings = gBundle.createBundle("chrome://lyricmaster/locale/overlay.properties");

var batchtooltip = strings.GetStringFromName("batchtooltip");
var fetchtooltip = strings.GetStringFromName("fetchtooltip");


function btn_chk() {

	if(TrackEditor.state && (TrackEditor.state.selectedItems.length > 1) && (TrackEditor.state.selectedItems.length < 1001))
	{
	var btn_batch = document.getElementById('batch_btn'); 
	btn_batch.setAttribute('disabled', 'false');
	btn_batch.setAttribute('tooltiptext', batchtooltip);
	var btn_fetch = document.getElementById('fetch_btn'); 
	btn_fetch.setAttribute('disabled', 'true');
	btn_fetch.setAttribute('tooltiptext', fetchtooltip);
	}

}


window.addEventListener("load", function() { btn_chk(); }, false);